rs.initiate()
{% for host in groups[hostvars[inventory_hostname].replSet] %}
rs.add("{{ hostvars[host].bind_ip }}:{{ hostvars[host].mongodb_port }}")
{% endfor %}
printjson(rs.status())
